package com.cheyun.netsalev3.bean

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.cheyun.netsalev3.BR
import com.cheyun.netsalev3.bean.basedata.Expchar
import com.cheyun.netsalev3.bean.drive.Experience2
import java.io.Serializable

data class EditDriveParam(
        var tid: String,
        var uname: String,
        var phone: String,
        var reserveseries:String,
        var reservespec: String,
        var licence: String,
        var reservetime:String,
        var driveuid:String,
        var isreserve:String,
        var agreement:String,
        var reserveid:String,
        var reserveday:String,
        var reservehalf:String,
        var drivetype:String,
        var drivingnum:String
) : BaseObservable(), Serializable {

//    @get:Bindable
//    var drivingnum: String = ""
//        set(value) {
//            field = value
//            notifyPropertyChanged(BR.drivingnum)
//        }

    @get:Bindable
    var driveName: String = ""
        set(value) {
            field = value
            notifyPropertyChanged(BR.driveName)
        }

    //预约类型名称
    @get:Bindable
    var isreservename: String = ""
        set(value) {
            field = value
            notifyPropertyChanged(BR.isreservename)
        }

    //试驾类型名称
    @get:Bindable
    var drivetypename: String = ""
        set(value) {
            field = value
            notifyPropertyChanged(BR.drivetypename)
        }

    //预约试驾车系
    @get:Bindable
    var reserveseriesname: String = ""
        set(value) {
            field = value
            notifyPropertyChanged(BR.reserveseriesname)
        }

    //预约试驾车型
    @get:Bindable
    var reservespecname: String = ""
        set(value) {
            field = value
            notifyPropertyChanged(BR.reservespecname)
        }


    constructor() : this(
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            "",
            ""
    )


}